package cn.jjxx.modules.te.service.impl;

import java.util.List;
import cn.jjxx.core.common.service.impl.CommonServiceImpl;
import cn.jjxx.modules.te.mapper.TeMaterialMonthMapper;
import cn.jjxx.modules.te.entity.TeMaterialMonth;
import cn.jjxx.modules.te.service.ITeMaterialMonthService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**   
 * @Title: 材料月度统计
 * @Description: 材料月度统计
 * @author yw
 * @date 2022-01-12 14:00:09
 * @version V1.0   
 *
 */
@Transactional
@Service("teMaterialMonthService")
public class TeMaterialMonthServiceImpl  extends CommonServiceImpl<TeMaterialMonthMapper,TeMaterialMonth> implements  ITeMaterialMonthService {

	@Override
	public boolean insertBatch(List<TeMaterialMonth> list) {
		if(list!=null&&list.size()>0){
			return baseMapper.insertBatch(list);
		}
		return true;
	}

	@Override
	public boolean updateBatch(List<TeMaterialMonth> list) {
		if(list!=null&&list.size()>0){
			return baseMapper.updateBatch(list);
		}
		return true;
	}
}
